-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide richer information when using NSSharingService #1699
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that this breaks adding an article to Safari Reading List.
It seems that NSSharingService simply picks the first result of |
I see in the log:
This warning also appears when I use the 'Email link' menu item… |
OK, I don't want to fight what appears to be AppKit bugs on NSSharingServicePicker and NSPasteboardWriting and will revert to a less sophisticated approach. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me otherwise. I prefer the narrower scope of the PR without the pasteboard stuff. NSPasteboardWriting has to be done eventually, but it has some annoying pitfalls.
Especially useful for the e-mail sharing service
To avoid having default font Times New Roman in Mail.app, I specify style "font-family:sans-serif" in template. Remove markup in type string pasteboard items.
Provide title of article in addition to URL
Title is used as sharing service's subject
Unfortunately, NSSharingService is not yet smart enough to pass multiple types of content.
Fix issue #1678